<?php

/**
 * descript:
 * User: blue
 * Date: 2018/3/21 16:27
 */

namespace app\admin\validate;

use think\Validate;

class Group extends Validate
{
    protected $rule=[
        'id'=>'require',
        'title'=>'require|token',
        'rules'=>'require'
    ];
    protected $message=[
        'id.require'=>'id不能为空',
        'id.title'=>'组标题不能为空',
        'id.rules'=>'权限不能为空'
    ];
    protected $scene=[
        'add'=>['title','rules'],
        'edit'=>['id','title','rules']
    ];
}